package com.huitu.whht.base.core.api.operation.system.entities;

import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import com.huitu.whht.api.core.common.base.BaseEntity;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.huitu.whht.api.core.common.base.MyLocalDateTimeDeserializer;
import com.huitu.whht.api.core.common.base.MyLocalDateTimeSerializer;
import java.time.LocalDateTime;

/**
 * 说明: 用户访问系统日志记录表实体类,表名称: T_WHHT_OPERATION_SYSTEM_LOG_B <br/>
 * 日期: 2019-04-11
 * @author LiuCW
 */
@Builder
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class OperationSystemLogB extends  BaseEntity {

private static final long serialVersionUID = 4L;

    /**
      * 日志主键ID
      */
    private String logId;
    /**
      * 用户ID
      */
    private String userId;
    /**
      * 用户名
      */
    private String userName;
    /**
      * 系统登入时间
      */
    @JsonDeserialize(using = MyLocalDateTimeDeserializer.class)
    @JsonSerialize(using = MyLocalDateTimeSerializer.class)
    private LocalDateTime loginTime;
    /**
      * 系统登出时间
      */
    @JsonDeserialize(using = MyLocalDateTimeDeserializer.class)
    @JsonSerialize(using = MyLocalDateTimeSerializer.class)
    private LocalDateTime logoutTime;
    /**
      * 时间戳
      */
    @JsonDeserialize(using = MyLocalDateTimeDeserializer.class)
    @JsonSerialize(using = MyLocalDateTimeSerializer.class)
    private LocalDateTime ts;
    /**
      * 令牌
      */
    private String token;
    /**
      * ip
      */
    private String ip;
}